<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	exclude-result-prefixes="xs"
	version="1.0">
	
	<xsl:output method="html"/>
	
	<xsl:template match="extension">
		<xsl:variable name="depth" select="'1'"/>
		<xsl:variable name="id" select="@id"/>
		<dl class="extList">
			<dt>
			<div class="extName"><a href="#" onclick="_ExtDetail({$id})"><xsl:if test="$depth &lt; 2"><xsl:value-of select="name"/></xsl:if> v<xsl:value-of select="version"/>
			</a><xsl:if test="enabled = 'false'">
					<span class="disabled">disabled</span>					
			</xsl:if><xsl:if test="required = 'true'">
				<span class="required">required</span>					
			</xsl:if>
				<div class="extAuthor"><xsl:value-of select="author"/><br />
					<xsl:value-of select="dateInstalled"/></div>
			</div>
			</dt>
			<dd><div class="extDesc"><xsl:value-of select="description"/></div>		</dd>	
		</dl>
	</xsl:template>
	
</xsl:stylesheet>